import { Http } from '@/utils/http'

/**
 * 获取全部诗歌信息
 * @returns 
 */
export function requestAuthor (data: any)  {
    return Http.request({
        url: '/out/author/getAuthor',
        method: 'post',
        data: data
    })
}

/**
 * 根据uid/账号查找用户信息
 * @returns 
 */
export function requestSearchAuthorByDynastyOrName (data: any)  {
    return Http.request({
        url: '/out/author/searchAuthorByDynastyOrName',
        method: 'post',
        data: data
    })
}

/**
 * 根据uid删除用户
 * @returns 
 */
export function requestDeleteAuthorById (data: any)  {
    return Http.request({
        url: '/author/deleteAuthorById',
        method: 'post',
        data: data
    })
}

/**
 * 根据uid更改用户
 * @returns 
 */
export function requestUpadateAuthorById (data: any)  {
    return Http.request({
        url: '/author/updateAuthorById',
        method: 'post',
        data: data
    })
}

/**
 * 获取朝代信息
 * @returns 
 */
export function requestDynasty ()  {
    return Http.request({
        url: '/dynasty/getDynasty',
        method: 'get'
    })
}

/**
 * 添加作者信息
 * @returns 
 */
export function requestAddAuthor (data: any)  {
    return Http.request({
        url: '/author/addAuthor',
        method: 'post',
        data: data
    })
}

